/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#ifndef __FRACTAL_TERRAIN_GENERATE_DIALOG_H__
#define __FRACTAL_TERRAIN_GENERATE_DIALOG_H__

#include <QtGui/QListWidget>
#include <QtGui/QDialog>
#include "BuilderUI.h"

namespace PQBuilder
{
	class FractalTerrainGenerateDialog
		: public QDialog
	{
		Q_OBJECT
	public:
		FractalTerrainGenerateDialog(QWidget* parent=0);
	public slots:
		void generateFractalTerrain();
		void selectTerrainSize(int index);
		void valueHChanged(int);
		void randomTerrain();
	private:
		Ui::FractalTerrainGenerateDialogUI* _ui;
		QGraphicsScene* _graphicsScene;
		int _terrainSize;//vertex=_terrainSize+1;
		float _valueH;
		int _randomSeed;

		

	};
}

#endif
